package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.CxdProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface CxdProductService extends BaseService<CxdProductBean> {

	CxdProductBean getCxdProductBeanById(String id) throws Exception;
	
	void removeCxdProductBeanById(String id) throws Exception;
	
	void removeCxdProductBeanByIds(String ids) throws Exception;
	
	CxdProductBean saveCxdProductBean(CxdProductBean crm) throws Exception;
	
	CxdProductBean updateCxdProductBean(CxdProductBean crm) throws Exception;
	
	Page<CxdProductBean>  findCxdProductBeanByCond(CxdProductBean bean,
			Page<CxdProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveCxdProductBeanExt(String sql) throws Exception;

	String findCxdProductBeanExtCreate(String tableName) throws Exception;

	String findCxdProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findCxdProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasCxdProductBeanExtData(String tableName, String id)
			throws Exception;
}